package com.sc.javaee.mapper;

import com.sc.javaee.pojo.Products;

import java.util.List;

public interface ProductsMapper {
    int deleteByPrimaryKey(Integer productId);

    int insert(Products record);

    int insertSelective(Products record);

    Products selectByPrimaryKey(Integer productId);

    int updateByPrimaryKeySelective(Products record);

    int updateByPrimaryKey(Products record);

    List<Products> getProducts(Integer categoryId);

    List<Products> getRandomProducts();

    List<Products> searchProducts(Integer categoryId, String keyword);

    List<Products> searchAllProducts(String keyword);
}